-- GENERATED SPELL FOR [Enraged Ravager] --


function spell0_17527(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(15716,pUnit)
pUnit:RegisterEvent('Sorts_17527', 655, 1)
end

function spell1_17527(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(3242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17527', 2339, 1)
end

function Sorts_17527(pUnit, Event)
local choix_sorts_17527 = math.random(0, 1)
if choix_sorts_17527 == 0 then
pUnit:RegisterEvent('spell0_17527', 1, 1)
end
if choix_sorts_17527 == 1 then
pUnit:RegisterEvent('spell1_17527', 1, 1)
end
end

function mob17527_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17527', math.random(1500, 3000), 1)
end

function mob17527_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17527_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17527_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17527, 1, 'mob17527_Action')
RegisterUnitEvent(17527, 2, 'mob17527_Leave')
RegisterUnitEvent(17527, 3, 'mob17527_Kill')
RegisterUnitEvent(17527, 4, 'mob17527_Die')
